<!doctype html>
<html lang="<%= lang %>">

<head>
  <meta charset="UTF-8" />
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>
    <%= title %>
  </title>
  <style>
    html,
    body,
    #app {
      position: relative;
      height: 100vh;
    }

    .loading-progress {
      height: 100%;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loading-progress-box {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loading-progress-box>.loading-progress-box-item {
      width: 16px;
      height: 16px;
      background-color: #a1a2a3;
      margin: 0 4px;
      animation: loader 1.2s linear infinite;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(1) {
      opacity: 0.1;
      animation-delay: -1.1s;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(2) {
      opacity: 0.2;
      animation-delay: -1s;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(3) {
      opacity: 0.3;
      animation-delay: -0.9s;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(4) {
      opacity: 0.4;
      animation-delay: -0.8s;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(5) {
      opacity: 0.5;
      animation-delay: -0.7s;
    }

    .loading-progress-box>.loading-progress-box-item:nth-child(6) {
      opacity: 0.6;
      animation-delay: -0.6s;
    }

    @keyframes loader {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.5;
      }
    }
  </style>
</head>

<body>
  <div id="app">
    <div class="loading-progress">
      <div class="loading-progress-box">
        <div class="loading-progress-box-item"></div>
        <div class="loading-progress-box-item"></div>
        <div class="loading-progress-box-item"></div>
        <div class="loading-progress-box-item"></div>
        <div class="loading-progress-box-item"></div>
        <div class="loading-progress-box-item"></div>
      </div>
    </div>
  </div>
  <script type="module" src="/src/main.ts"></script>
</body>

</html>